﻿using Common.ParameterLocator;

namespace Common.CustomException
{
    public static class Error
    {
        public static string FailToConnectToTfsServer
        {
            get
            {
                return string.Format(Resource.FAIL_TO_CONNECT_TFS_SERVER,
                                     ServiceParameter.Instance.Parameter.TfsServerUrl);
            }
        }

        public static string BadTfsServerUrl
        {
            get { return string.Format(Resource.BAD_TFS_SERVER_URL, ServiceParameter.Instance.Parameter.TfsServerUrl); }
        }

        public static string TfsQueryIsNotProvided
        {
            get { return string.Format(Resource.PARAMETER_NOT_PROVIDED, "Tfs Query"); }
        }

        public static string WorkItemTypeIsNotProvided
        {
            get { return string.Format(Resource.PARAMETER_NOT_PROVIDED, "Working Item Type"); }
        }

        public static string TfsServerUrlIsNotProvided
        {
            get { return string.Format(Resource.PARAMETER_NOT_PROVIDED, "Tfs Server Url"); }
        }

        public static string ProjectDoesNotContainThisWorkItemType
        {
            get
            {
                return string.Format(Resource.PROJECT_DOES_NOT_CONTAINS_THIS_WORKITEMTYPE,
                                     ServiceParameter.Instance.Parameter.TfsWorkitemType);
            }
        }

        public static string BadStatementFormat(string statementType)
        {
            return string.Format(Resource.BAD_STATEMENT_FORMAT,
                                 statementType);
        }
    }
}